import { Component, OnInit, Input, ViewEncapsulation, Output, EventEmitter } from '@angular/core';
@Component({

    selector: 'wit-menuTap',
    templateUrl: 'menuTap.component.html',
    styleUrls: ['menuTap.component.scss'],
    encapsulation:ViewEncapsulation.None

})
export class MenuTapComponent implements OnInit {
    @Input() menuConfig: any;
    @Output() onChangeTab = new EventEmitter<any>();
    @Output() onCloseTab = new EventEmitter<any>();
    collections: any;
    constructor() {
        // require("!style/useable!css!sass!../assets/skin/default.useable.scss").use();
        this.collections = [];
    }

    ngOnInit() {

    }
    onChangeTabs(event) {
        if (this.onChangeTab != null) {
            this.onChangeTab.emit(event);
        }
    }
    onCloseTabs(event) {
        if (this.onCloseTab != null) {
            this.onCloseTab.emit(event);
        }
    }
    clickMenu(obj) {
       this.collections=obj.node.collection;
    }
}